jQuery(document).ready(function() {
	
	//创建JQGRID表格
	var grid = $("#table1").ligerGrid({
        columns: [
                  { display: '采购单号', name: 'oricode', width: 150 },
                  { display: '物料名称', name: 'name', width: 100},
                  { display: '船线', name: 'hline', width: 120},
                  { display: '单位', name: 'unit', width: 100 },
                  { display: '数量', name: 'quantity', width: 100 },
                  { display: '日用量', name: 'ryl', width: 100 },
                  { display: '港口', name: 'gkname', width: 100 },
                  { display: '抵港日期', name: 'dgrq', width: 100 ,render: function (item){
            		  var date=new Date(item.dgrq);
            		  return formatDate(date,"yyyy-MM-dd");
            	  }},
                  { display: '装船日期', name: 'zcrq', width: 100 ,render: function (item){
            		  var zdate=new Date(item.zcrq);
            		  return formatDate(zdate,"yyyy-MM-dd");
            	  }},
            	  { display: '通关情况', name: 'billstatus', width: 150 ,render :function(row){
                	  if(row.billstatus == '2'){
              			return '部分入库';
              		}else if(row.billstatus == '3'){
              			return '全部入库';
              		}else if(row.billstatus == '1'){
              			return '审核通过';
              		}
                  }}
                  ],  usePager: true,pageSize:30,
//                      url : basic_Url+"/list.do",
                      width: '100%', height: '98%', checkbox: false,rownumbers:true
                  });
	$("#pageloading").hide();
	
	
});
